home *** CD-ROM | disk | FTP | other *** search
- -- card: 11180 from stack: in.3r
- -- bmap block id: 0
- -- flags: 4000
- -- background id: 3837
- -- name: FileModDate
- ----- HyperTalk script -----
- on closecard
- hide message window
- end closecard
-
-
- -- part 2 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=199 top=233 right=283 bottom=261
- -- title width / last selected line: 0
- -- icon id / first selected line: 27056 / 27056
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Try this
- ----- HyperTalk script -----
- on mouseUp
- if the optionkey is down then pass mouseup
- put "Select a file..."
- put filename() into thisfile
- put "Created on " into info
- convert fileModDate(thisfile,true) to short date
- put it after info
- put "; Modified on " after info
- convert fileModDate(thisfile,false) to short date
- put it after info
- put info
- end mouseUp
-
-
-
- -- part contents for background part 5
- ----- text -----
- FileModDate
-
- -- part contents for background part 10
- ----- text -----
- 6
-
- -- part contents for background part 6
- ----- text -----
-
- This can be used to get the creation or modification date of a file, or as a 'File exists' utility.
-
-
-
-
-
-
-
-
- Thanks to:
- Dewi Williams
- 2227 Juniper Court
- Boulder CO 80302
- (303) 443 9038
- Delphi: DEWI
-
-
- -- part contents for background part 7
- ----- text -----
- Syntax:
-
- FileModDate(<PathName>,<needCreation>)
-
- Returns the date of the last modification of the file in ticks, or empty ("") if there is an error.
-
-
- "PathName" is the full pathname to the target.
-
- <needCreation> can be true or false. If it is true, the function will return the creation date, otherwise it will return the modification date.
-
-
- -- part contents for background part 27
- ----- text -----
- XFCN